<?php
	require_once(realpath(dirname(__FILE__)) . "/Baseobj.class.php");

	class Transzone extends Baseobj{

		var $id;
		var $transport;
		var $zone;

		const TABLE="transzone";
		var $table=self::TABLE;

		var $bddvars = array("id", "transport", "zone");

		function __construct($id = 0){
			parent::__construct();

			if($id > 0)
 			  $this->charger_id($id);
		}

	    function charger_id($id){
	    	return $this->getVars("select * from $this->table where id=\"$id\"");
        }

		function charger($transport, $zone){
			return $this->getVars("select * from $this->table where transport=\"$transport\" and zone=\"$zone\"");
		}
	}
?>